-- GENERATED SPELL FOR [Encrusted Tide Crawler] --


function spell0_2233(pUnit, Event) --@Infected Wound,n/a--
pUnit:FullCastSpellOnTarget(3427,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2233', 30329, 1)
end

function Sorts_2233(pUnit, Event)
local choix_sorts_2233 = math.random(0, 0)
if choix_sorts_2233 == 0 then
pUnit:RegisterEvent('spell0_2233', 1, 1)
end
end

function mob2233_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2233', math.random(1500, 3000), 1)
end

function mob2233_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2233_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2233_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2233, 1, 'mob2233_Action')
RegisterUnitEvent(2233, 2, 'mob2233_Leave')
RegisterUnitEvent(2233, 3, 'mob2233_Kill')
RegisterUnitEvent(2233, 4, 'mob2233_Die')
